package com.zan.pattern.prototype.demo;

/**
 * @Author Zan
 * @Create 2024/4/25 10:11
 * @Description : 原型对象 - 具体原型类
 * @ClassName: RealizeType
 */
public class RealizeType implements Cloneable {

    public RealizeType() {
        System.out.println("具体的原型对象创建完成");
    }

    @Override
    public RealizeType clone() throws CloneNotSupportedException {
        System.out.println("具体原型复制成功！");
        return (RealizeType) super.clone();
    }
}
